Passed
Push — master ( 4c2534...c3984e )
by Christiaan
54s queued 10s
created

isFunction.test.js ➔ ???   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
/* eslint-env jest */
2
import isFunction from './isFunction'
3
4
it('isFunction is a function', () => {
5
  expect(isFunction(isFunction)).toBeTruthy()
6
})
7
it('Arrow function is a function', () => {
8
  expect(isFunction(() => null)).toBeTruthy()
9
})
10
it('Is a function', () => {
11
  expect(isFunction(function () {})).toBeTruthy()
12
})
13
it('Object is not a function', () => {
14
  expect(isFunction({})).toBeFalsy()
15
})
16
it('Primitive is not a function', () => {
17
  expect(isFunction(1)).toBeFalsy()
18
})
19
20
// it
21